package com.yx.fx.webApi.controller;


import com.yx.fx.webApi.entity.TEmployees;
import com.yx.fx.webApi.service.TEmployeesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author pxb
 * @since 2021-09-17
 */
@RestController
@RequestMapping("/tEmployees")
public class TEmployeesController {

    @Autowired
    TEmployeesService tEmployeesService;


    @GetMapping("/findByEid/{eid}")
    public List<TEmployees> findByEid(@PathVariable String eid){
        return  tEmployeesService.findByEid(eid);
    };

}

